﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SqlScriptVault.Model
{
    [Serializable]
    public class ConnectionVault
    {
        private readonly List<ServerGroup> _serverGroups;

        public ConnectionVault()
        {
            _serverGroups = new List<ServerGroup>();
        }

        public ICollection<ServerGroup> ServerGroups
        {
            get
            {
                return new ReadOnlyCollection<ServerGroup>(_serverGroups);
            }
        }

        public void Add(ServerGroup serverGroup)
        {
            _serverGroups.Add(serverGroup);
        }
    }
}
